package com.iamteer.service.impl;

import com.iamteer.dao.IAdminDao;
import com.iamteer.dao.impl.AdminDao;
import com.iamteer.service.IAdminService;
import com.iamteer.entity.Admin;

/**
 * 3.管理员业务逻辑层，实现
 * @author Chuck
 *
 */
public class AdminService implements IAdminService {

	// 创建 dao 对象
	private IAdminDao adminDao = new AdminDao();
	
	@Override
	public Admin findByNameAndPwd(Admin admin) {
		try {
			return adminDao.findByNameAndPwd(admin);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}
